#ifndef ERRORCODE
#define ERRORCODE

#define ERR_UNKNOW_ERROR        0xffff
#define ERR_NO_ERROR			0x0000
#define ERR_ADDR_NOTEXIT		0x0001
#define ERR_CHANNEL_NOEXIT		0x0002
#define ERR_CHECKCRC_ERROR		0x0003
#define ERR_OPEN_PORT_FAIL      0x0004
#define ERR_SET_BAUDRATE_FAIL   0x0005
#define ERR_SET_DATABIT_FAIL    0x0006
#define ERR_SET_PARITY_FAIL     0x0007
#define ERR_SET_STOPBIT_FAIL    0x0008
#define ERR_SET_FLOWCTRL_FAIL   0x0009

#endif // ERRORCODE

